package com.github.caijh.mall.sms.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.caijh.mall.common.PageParams;
import com.github.caijh.mall.sms.model.SmsRecord;
import com.github.caijh.mall.sms.request.SmsRecordRequest;

/**
 * SmsRecordService 接口
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
public interface SmsRecordService extends IService<SmsRecord> {

    /**
     * 列表
     *
     * @param request    请求参数
     * @param pageParams 分页类参数
     * @return List<SmsRecord>
     * @author Mr.Zhang
     * @since 2020-04-16
     */
    List<SmsRecord> getList(SmsRecordRequest request, PageParams pageParams);

    /**
     * 保存短信记录
     *
     * @param smsRecord 待保存短信记录
     * @return 保存结果
     */
    boolean save(SmsRecord smsRecord);

}
